<%@ page language="java" contentType="text/html; charset=utf-8"%>
<%@ taglib prefix="s" uri="/struts-tags" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<title>数据查询</title>
<link href="styles/general.css" rel="stylesheet" type="text/css" /><link href="styles/main.css" rel="stylesheet" type="text/css" />
    <script type="text/javascript" src="js/common.js"></script>
     <script type="text/javascript" src="js/sorttable.js"></script>
    <script src="js/utils.js" type="text/javascript"></script>
    <script type="text/javascript" src="js/jquery/uploadify/jquery.min.js"></script>
	<script language="javascript" type="text/javascript" src="js/DatePicker4.72/WdatePicker.js"></script>

    <script type="text/javascript">
		
	</script>
</head>

<body>
<h1>
        <span class="action-span"></span> <span
            class="action-span1"><a href="mainframe.jsp">
                首页</a> </span><span id="search_id" class="action-span1">- 数据查询</span>
    </h1>
    <form name="form1" id="form1" method="post" action="importlogquery_query.do" onsubmit="return save();">
    <input type="hidden" id="dimension" name="dimension" />
    <div class="form-div"   style="margin-bottom: 5px;width: 100%;" align="center">
        <table width="90%"  cellspacing="1" cellpadding="2" > 
            <tbody>
				<tr height="30">
					<td>开始日期：</td>
					<td align="left"><input type="text" size="25" name="startdate" id="startdate" 
					    onFocus="WdatePicker({isShowWeek:true,dateFmt:'yyyy-MM-dd',skin:'whyGreen'})" 
					    onblur="formvalidator(this)" value="<s:property value="startdate" />"/></td>
					<td>结束日期：</td>
					<td align="left"><input type="text" size="25" name="enddate" id="enddate" 
					    onFocus="WdatePicker({isShowWeek:true,dateFmt:'yyyy-MM-dd',skin:'whyGreen'})" 
					    onblur="formvalidator(this)" value="<s:property value="enddate" />"/></td>
				</tr>
				<tr>
					<td align="center" colspan="4"><input type="submit" value=" 查询 " class="button" /></td>
				</tr>
			</tbody>
		</table>
	</div>
   <!-- start ad menu list -->
    <div class="list-div" id="listDiv" style="margin-bottom: 5px;width: 100%;" align="center">
        <table width="90%" cellspacing="1" cellpadding="2" align="center">
            <tbody>
                <tr>
                    <th height="20">导入时间</th>
                    <th>导入人</th>
				    <th>模版文件</th>
                 </tr>
                <s:if test="list.size()>0">
  				<s:iterator value="list" status="i"> 
  					 <tr>
                            <td style="background-color: rgb(255, 255, 255);">
                            <s:property value="createdate"/>
                            </td>
                            <td style="background-color: rgb(255, 255, 255);">
                            <s:property value="createuser"/>
                            </td>
                            <td style="background-color: rgb(255, 255, 255);">
                             <a target="_" href="importlogquery_d.do?refilename=<s:property value="refilename"/>&filename=<s:property value="filename"/>"><s:property value="filename"/></a>
                            </td>
  					</tr>
  				</s:iterator>
  				</s:if>
		  </tbody>
		  </table>
  </div>
  </form>
 <!--Bottom开始-->
    <script language="JavaScript">

if (document.getElementById("listDiv"))
{
  document.getElementById("listDiv").onmouseover = function(e)
  {
    obj = Utils.srcElement(e);

    if (obj)
    {
      if (obj.parentNode.tagName.toLowerCase() == "tr") row = obj.parentNode;
      else if (obj.parentNode.parentNode.tagName.toLowerCase() == "tr") row = obj.parentNode.parentNode;
      else return;

      for (i = 0; i < row.cells.length; i++)
      {
        if (row.cells[i].tagName != "TH") row.cells[i].style.backgroundColor = '#eeeded';
      }
    }

  }

  document.getElementById("listDiv").onmouseout = function(e)
  {
    obj = Utils.srcElement(e);

    if (obj)
    {
      if (obj.parentNode.tagName.toLowerCase() == "tr") row = obj.parentNode;
      else if (obj.parentNode.parentNode.tagName.toLowerCase() == "tr") row = obj.parentNode.parentNode;
      else return;

      for (i = 0; i < row.cells.length; i++)
      {
          if (row.cells[i].tagName != "TH") row.cells[i].style.backgroundColor = '#FFF';
      }
    }
  }

}

    </script>
    
<div id="footer">
<br />
<s:property value="bottom"/></div>
    <!--Bottom结束-->
</body>
</html>